package com.candy.th4;


/**
 * @author donglin
 * @Title:
 * @类名: Client
 * @date 2020/7/22
 */
public class Client1 extends Thread{
    //共享资源（银行账户）
    private Bank bank;
    //想要取款的金额
    private int want;

    public Client1(String name, Bank bank) {
        super(name);
        this.bank = bank;

    }

    @Override
    public void run() {
       this.bank.ask();
    }
}
